package cn.wenhaha.common.bean.dto.mapper;

import cn.wenhaha.common.bean.vo.DataPluginInfoVo;
import cn.wenhaha.common.db.bean.SysDataSource;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-03-26 18:54
 */
@Mapper
public interface DataPluginInfoVoMapper {

    DataPluginInfoVoMapper INSTANCE = Mappers.getMapper( DataPluginInfoVoMapper.class );

    List<DataPluginInfoVo> toList(List<SysDataSource> roles);

    DataPluginInfoVo toVo(SysDataSource dataSource);
}
